package com.jf.thread;

public class Teacher implements Runnable{
    @Override
    public void run() {
        for(int i=1;i<101;i++){
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println(Thread.currentThread().getName());
            System.out.println("runnable方式的子线程"+i);
        }
    }
}
